package NG::Gen::Users::User;
use strict;
use warnings;
use utf8;


require NG::Sys::Cached::Mixed;
require NG::Gen::Users::Secure;

our @ISA = qw(
NG::Gen::Users::Secure
NG::Sys::Cached::Mixed::Record
);

use NG::Sys::Datetime;

sub create_user {
	my ($class,$parent,$ip,$ref) = @_;
	my $user = {
		login => mk_tmp_login(),
		title => "Гость",
		reg_ip => $ip,
		reg_date => unixtime2timestamp(),
		refferer => $ref,
	};
	return $user;
}
sub remove_user {
	my ($class,$parent,$user) = @_;
}
sub mk_tmp_login {
	return time().(11111 + int rand 88888);
}

1;
